home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1995 May / PC Answers CD-ROM 7 (Future Publishing) (May 1995).iso / vbits / code / pleas / ole / visio / search / readme.txt < prev    next >
Encoding:
Text File  |  1994-05-18  |  2.9 KB  |  67 lines

  1. Visio Search / Replace Add-on  v1.1
  2.  
  3. This is a Visual Basic Add-on for Visio v2 that performs a Search and
  4. Replace on the current document.  It has the following features:
  5.  
  6.   Can search and replace text in the Text, Name, Data1, Data2, and Data3
  7. fields of any shape.
  8.  
  9.   Can search and replace the size (in points) stored in the Size Cell of
  10. the Character Row of the shape sheet for any shape.
  11.  
  12.   Scope of search can be:
  13.     Current Selection
  14.     Current Page
  15.     All Pages
  16.  
  17. To use, copy VISIOSR.EXE into the \Visio\Add-ons directory.  I built
  18. this using Microsoft Visual Basic Standard Edition.  I have no idea if
  19. there are DLLs or other files needed that are not installed by Visio
  20. 2.0.  Since the add-ons included with Visio 2.0 did not include any
  21. DLLs, I am assuming that none are required for this either.  If you have
  22. a problem, let me know and I will try to update the ZIP file to include
  23. whatever is needed.  The VISIOSR.MAK file included makes some
  24. assumptions about where things are located.  If you want to use the
  25. source, take a look and fix the disk and path stuff as required.
  26.  
  27. After starting Visio (as you must since the Add-ons directory is only
  28. scanned at program start), load the document you wish to change, and
  29. select Windows Run Add-on from the menus.  Select VISIOSR.EXE and click
  30. OK.  A self-explanatory form will appear.  You must enter text to
  31. search-for, but can leave the replace-by field blank if you wish to
  32. delete the search-for text. If you have a current selection, that will
  33. be the default scope-of-search. Otherwise, that option is disabled and
  34. the current-page is the default. The default field-to-search is TheText,
  35. but you can select any or all of the fields.
  36.  
  37. Click OK to begin the search or Cancel to return to Visio.
  38.  
  39. Once a match is found, a Confirmation form will appear.  You can elect
  40. to change the current item, skip the current item, replace all items
  41. without further confirmation, or cancel the search and return to Visio.
  42.  
  43. VISIOSR will find only the first instance of the search-for string in each
  44. selected field-to-search.  That is, if a shape's Text is
  45.  
  46.  "Hi to you and yours"
  47.  
  48. a search-for string of "you" will find "you", but not "yours".
  49.  
  50. All searches are case-sensitive.
  51.  
  52. Once you are done and back in Visio, the Edit Undo function will undo the
  53. changes, one field of one shape at a time.  Thus, it may require a lot of
  54. Undos to Undo a single search and replace.
  55.  
  56. This program and its documentation are copyright (c) 1993 by
  57. Dennis K. Fitzgerald.  Anyone may freely use and/or distribute them as
  58. long as this documentation and copyright notice is included.
  59.  
  60. Please let me know of your experiences, problems, ideas for improvement.
  61. My Compuserve ID is: Dennis K. Fitzgerald 72627,1442.
  62.  
  63. v1.1----------------------------
  64.   Fixed problem where Name field was not handled same as others.
  65.   Added "passive" help.  Amazingly easy with Visual Basic!
  66.   Cleaned up and included source code.
  67.